package com.yuantu.judiciary.exception.enums;

import com.yuantu.judiciary.common.CodeEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 短信模块异常码
 *
 * @author syw
 * @since 2023-06-08
 **/
@Getter
@AllArgsConstructor
public enum SmsExceptionEnum implements CodeEnum {

    /**
     * 短信发送相关
     */
    SMS_EXCEED_SEND_LIMIT(40001, "短信发送超限"),
    SMS_SEND_ERROR(40002, "短信发送失败"),
    /**
     * 短信验证
     */
    SMS_VERIFY_FAILURE(40003, "短信验证失败"),
    SMS_RECORD_NOT_EXIST(40004, "短信记录不存在"),
    SMS_REPORT_EXPIRED(40005, "报告查看超出有效期")
    ;

    private final int code;
    private final String message;

}
